//! px:custom_limit
use pavex::request::body::BodySizeLimit;
use pavex::request_scoped;
use pavex::unit::ToByteUnit;

#[request_scoped]
pub fn body_size_limit() -> BodySizeLimit {
    BodySizeLimit::Enabled {
        max_size: 2.megabytes(),
    }
}
